<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <div id="app"></div>
    <script src="../node_modules/@vue/reactivity/dist/reactivity.global.js"></script>
    <script>
      let { effect, reactive, ref, toRef, toRefs, computed } = VueReactivity;
      let r = ref(18);
      const age = computed(() => {
        console.log("run");
        return r.value + 10;
      });
      console.log(age.value);
      console.log(age.value);

      setTimeout(() => {
        r.value = 100;
        console.log(age.value);
      }, 1000);
    </script>
  </body>
</html>
